package com.demo.java8;

import com.demo.java8.refactor.CommonResult;

import java.io.UnsupportedEncodingException;

/**
 * Created by churcy on 2017/9/29.
 */
public class Test {


    public static void main(String[] args) throws UnsupportedEncodingException {
        System.out.println(CommonResult.successResult());
        System.out.println(CommonResult.successResult(CommonResult.CodeAndMsg.SUCCESS));
        System.out.println(CommonResult.commonResult(CommonResult.CodeAndMsg.SUCCESS));
        System.out.println(CommonResult.getBuilder().code("1").build());

    }
}
